home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
popupre
/
menucont.frm
< prev
next >
Wrap
Text File
|
1995-03-03
|
2KB
|
76 lines
VERSION 2.00
Begin Form frmMenuContainer
BackColor = &H00C0C0C0&
Caption = "Invisible Menu Container"
ClientHeight = 750
ClientLeft = 1905
ClientTop = 4470
ClientWidth = 6585
Height = 1440
Left = 1845
LinkTopic = "Form1"
ScaleHeight = 750
ScaleWidth = 6585
Top = 3840
Visible = 0 'False
Width = 6705
Begin Menu mnuPopUpMDIParent
Caption = "PopUpMDIParent"
Begin Menu mniPopUpMDIParent
Caption = "Show MDI Child Window "
Index = 0
End
Begin Menu mniPopUpMDIParent
Caption = "Show Modal Child Window "
Index = 1
End
Begin Menu mniPopUpMDIParent
Caption = "-"
Index = 2
End
Begin Menu mniPopUpMDIParent
Caption = "Exit"
Index = 3
End
End
Begin Menu mnuPopUpChild
Caption = "PopUpChild"
Begin Menu mniPopUpChild
Caption = "New"
Index = 0
End
Begin Menu mniPopUpChild
Caption = "Open..."
Index = 1
End
Begin Menu mniPopUpChild
Caption = "Save..."
Index = 2
End
Begin Menu mniPopUpChild
Caption = "Close"
Index = 3
End
End
End
Option Explicit
Sub mniPopUpChild_Click (Index As Integer)
' Set the index of the clicked child popup menu entry
' to the 'menu click' label of the child window and
' trigger its 'Change' event
Screen.ActiveForm!lblMenuClick = CStr(Index)
End Sub
Sub mniPopUpMDIParent_Click (Index As Integer)
' Set the index of the clicked MDI parent popup menu entry
' to the 'menu click' label of the MDI parent window and
' trigger its 'Change' event
frmMDIParent!lblMenuClick = CStr(Index)
End Sub